#ifndef SERVERMULTITHREAD_H
#define SERVERMULTITHREAD_H

#include <QThreadPool>
#include "server.h"
#include "serverthread.h"
#include "service.h"

class ServerMultithread : public Server
{
   Q_OBJECT
public:
    ServerMultithread(Service *service, int waitForAnswer = -1);


protected:
    virtual void incomingConnection(int handle);

private:
    Service *service;
    int waitForAnswer;

};

#endif // SERVERMULTITHREAD_H
